/**
 * Created By: sisopipo Project Team
 * Created Date: Mar 4, 2011
 */
package com.sisopipo.assetsportal.security;

import java.util.List;

import com.sisopipo.assetsportal.security.domain.Function;
import com.sisopipo.assetsportal.security.domain.Role;

/**
 * @author ribin
 * @version 1.0
 */
public interface IRoleManager {

	public Function getFunction(String funcCode);

	public void saveOrUpdateFunction(Function func);

	public void removeFunction(Function func);

	public List<Function> getAllTopFunctions();

	public Role getRole(String id);

	public void saveOrUpdateRole(Role role);

	public void removeRole(Role role);

	public List<Role> getAllRoles();

	public boolean hasFunction(String roleId, String funcCode);

}
